//
//  BKSecondBKBriefController.m
//  bestkeep
//
//  Created by windCould on 16/11/9.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKSecondBKBriefController.h"
#import "BKMyCommon.h"
@interface BKSecondBKBriefController ()

@property (nonatomic,strong)UILabel * lab_BESTKEEP;
@property (nonatomic,strong)UILabel * lab_label2;
@property (nonatomic,strong)UILabel * lab_label3;
@property (nonatomic,strong)UILabel * lab_label4;
@property (nonatomic,strong)UILabel * lab_label5;

@end

@implementation BKSecondBKBriefController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.title=@"关于BESTKEEP";
    self.view.backgroundColor =[UIColor colorWithRed:239/255.f green:239/255.f blue:239/255.f alpha:1];

    _lab_BESTKEEP = [[UILabel alloc]initWithFrame:CGRectZero];
    _lab_BESTKEEP.text=@"BESTKEEP简介";
    _lab_BESTKEEP.font=[UIFont systemFontOfSize:18];
    _lab_BESTKEEP.textColor = RGBACOLOR(64, 64, 64,1);
    [self.view addSubview:_lab_BESTKEEP];
    
    _lab_label2 =[[UILabel alloc]initWithFrame:CGRectZero];
    _lab_label2.text=@"[您身边的真人导购师]";
    [_lab_label2 setHidden:YES];
    _lab_label2.font = [UIFont systemFontOfSize:14];
    _lab_label2.textColor=RGBCOLOR(64, 64, 64,1);
    [self.view addSubview:_lab_label2];
    
    _lab_label3 = [[UILabel alloc]initWithFrame:CGRectZero];
    _lab_label3.font = [UIFont systemFontOfSize:14];
    _lab_label3.textColor = RGBCOLOR(64, 64, 64,1);
    _lab_label3.numberOfLines=0;
    [self.view addSubview:_lab_label3];
    
    NSString *contentStr = @"颠覆传统\n还在抢团购抢优惠抢折扣？不用这么麻烦!开启协同共享消费新模式，您以为在消费，实际在赚钱，不用再剁手！";
    NSMutableAttributedString *str = [[NSMutableAttributedString alloc]initWithString:contentStr];
    [str addAttribute:NSForegroundColorAttributeName value:RGBCOLOR(255, 0, 0,1) range:NSMakeRange(0, 4)];
    _lab_label3.attributedText =str;
    
    _lab_label4 =[[UILabel alloc]initWithFrame:CGRectZero];
    _lab_label4.font=[UIFont systemFontOfSize:14];
    _lab_label4.textColor=RGBCOLOR(64, 64, 64,1);
    _lab_label4.numberOfLines=0;
    [self.view addSubview:_lab_label4];
    
    NSString *textlabel = @"去中间化\n货比三家不如只取一家！为您精心挑选一切商品，直接对接厂家，省略一切中间环节。随便怎么选，都是最低价的优质商品!";
    
    NSMutableAttributedString *str1 = [[NSMutableAttributedString alloc]initWithString:textlabel];
    [str1 addAttribute:NSForegroundColorAttributeName value:RGBCOLOR(255, 0, 0,1) range:NSMakeRange(0, 4)];
    _lab_label4.attributedText =str1;
    
    _lab_label5=[[UILabel alloc]initWithFrame:CGRectZero];
    _lab_label5.font=[UIFont systemFontOfSize:14];
    _lab_label5.textColor=RGBCOLOR(64, 64, 64,1);
    _lab_label5.numberOfLines=0;
    [_lab_label5 setHidden:YES];
    [self.view addSubview:_lab_label5];
    
    NSString *textlabel2;
    textlabel2 =@"真人导购\n不知道自己该买什么？逼死选择困难症！BESTKEEP最专业的真人导购平台，跟着达人购物吧！";
    if (SCREENWIDTH >370 && SCREENWIDTH < 400) {
        textlabel2 =@"真人导购\n不知道自己该买什么？逼死选择困难症！BESTKEEP\n最专业的真人导购平台，跟着达人购物吧！";
    }
    
    NSMutableAttributedString *str2 = [[NSMutableAttributedString alloc]initWithString:textlabel2];
    [str2 addAttribute:NSForegroundColorAttributeName value:RGBCOLOR(255, 0, 0,1) range:NSMakeRange(0, 4)];
    _lab_label5.attributedText=str2;
    
    [self layoutViews];
}

-(void)layoutViews
{
    [_lab_BESTKEEP mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view.mas_top).mas_offset(94);
        make.centerX.equalTo(self.view.mas_centerX);
    }];

    [_lab_label2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view.mas_left).mas_offset(ApplicationBackGauge);
        make.right.equalTo(self.view.mas_right).mas_offset(-ApplicationBackGauge);
        make.top.equalTo(_lab_BESTKEEP.mas_bottom).mas_offset(30);
    }];
    
    [_lab_label3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view.mas_left).mas_offset(ApplicationBackGauge);
        make.right.equalTo(self.view.mas_right).mas_offset(-ApplicationBackGauge);
        make.top.equalTo(_lab_label2.mas_bottom).mas_offset(15);
    }];
    
    [_lab_label4 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view.mas_left).mas_offset(ApplicationBackGauge);
        make.right.equalTo(self.view.mas_right).mas_offset(-ApplicationBackGauge);
        make.top.equalTo(_lab_label3.mas_bottom).offset(12);
    }];
    
    [_lab_label5 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view.mas_left).mas_offset(ApplicationBackGauge);
        make.right.equalTo(self.view.mas_right).mas_offset(-ApplicationBackGauge);
        make.top.equalTo(_lab_label4.mas_bottom).offset(10);
    }];

}

@end
